#pragma once
#include "Object.h"
#include <math.h>
#define  ATTACK_TIME 1500
#define BULLET_COUNT 1
#define SHOOT_TIME 600
#define VEC_0 D3DXVECTOR2(0,0)
#define  NONE_BOX &Box(VEC_0,VEC_0,VEC_0);
class Sprite;
class Box;
class GunObject;
enum ENEMY_STATE
{
	ATTACK, HIDE, STAND_UP, SIT_DOWN
};
class Sniper : public Object
{
	Sprite* _left;
	Sprite* _right;		
	float _delay;
	ENEMY_STATE state;
	float _shootTime;	
	int _bulletCount;
	float _changeState;
	float _shootDirect;
	D3DXVECTOR2 _shootPosition;

public:
	void init();
	void update();
	void render();	
	void attack(float time);
	Sniper(Box* box);
	~Sniper(void);

	virtual Box* getCollisionBox();

};

